let isLogin;
//发送请求:得到登录的用户信息		得到所有的分类信息		得到用户的购物车信息
$(function(){
	$.ajaxSettings.async = false;
	$.post("../..memberServlet",{
		op:'common'
	},data=>{
		console.log(data);
		//开始区分
	/*	let str = ``;
		if( data.member && data.member.length > 0){
			isLogin = true;
		}else{
			isLogin = false;
			//判断,如果是购物车界面,则直接跳转到登录界面
			if("/snacknet/cart.html" == location.pathname || "/snacknet/pay.html" == location.pathname){
				location.href = "login.html";
			}
		}*/
	},"json")
	$.ajaxSettings.async = true;
})